﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPMS.Log
{
    /// <summary>
    /// 日志错误处理器接口
    /// </summary>
    /// <remarks>用于处理日志内部错误</remarks>
    /// <history>
    /// [zanezeng]               2009/10/19 10:29    创建
    /// </history>
    public interface ILogErrorHandler
    {
        /// <summary>
        /// 处理给定信息描述的错误
        /// </summary>
        /// <param name="message">错误的描述信息</param>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/25 15:31    创建
        /// </history>
        void HandleError( string message );

        /// <summary>
        /// 处理给定异常对象描述的错误
        /// </summary>
        /// <param name="ex">用于描述错误信息的异常对象</param>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/25 15:32    创建
        /// </history>
        void HandleError( Exception ex );

        /// <summary>
        /// 处理给定信息和异常对象描述的错误信息
        /// </summary>
        /// <param name="message">错误的描述信息</param>
        /// <param name="ex">用于描述错误信息的异常对象</param>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/25 15:32    创建
        /// </history>
        void HandleError( string message, Exception ex );
    }
}
